<template>
 <div>
     <div class="header">
         <div class="h-left">
             <img :src="headUrl">
             <span >{{celebrityName}}</span>
         </div>
         <div class="h-right">
             <span>+关注</span>
             <span>点击关注,不错过TA最新的演出消息哦~</span>
         </div>
     </div>
     </div>   
</template>
<script>
import getLinkData from "@/api/getLinkData.js";
export default {
  data() {
    return {
      headUrl: "",
      celebrityName: ""
    };
  },
  mounted() {
    getLinkData("/apidl/dakaMovieDec", "GET", {
      id: this.$route.query.id
    }).then(res => {
      this.headUrl = res.data.daka[0].headUrl;
      this.celebrityName = res.data.daka[0].celebrityName;
    });
  }
};
</script>
<style scoped>
.header {
  width: 100%;
  height: 2.7rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  background-image: linear-gradient(to right, #2a294a, #44435f, #2a294a);
}
.h-left {
  /* width: 3rem; */
  display: flex;
  padding-left: 0.3rem;
  justify-content: space-between;
  align-items: center;
}
.h-left img {
  width: 1.3rem;
  height: 1.3rem;
  background-color: antiquewhite;
  border-radius: 50%;
  overflow: hidden;
}
.h-left span {
  display: block;
  color: #ffffff;
  font-size: 0.36rem;
  font-weight: bold;
  margin-left: 0.1rem;
}
.h-right {
  width: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
}
.h-right span:nth-child(1) {
  display: block;
  color: #ffffff;
  font-size: 0.32rem;
}
.h-right span:nth-child(1) {
  width: 1.2rem;
  text-align: center;
  line-height: 0.6rem;
  height: 0.6rem;
  border-radius: 0.5rem;
  background-color: rgba(153, 153, 153, 0.5);
  display: block;
  color: #ffffff;
  font-size: 0.3rem;
  margin-left: 2rem;
}
.h-right span:nth-child(2) {
  width: 100%;
  height: 0.6rem;
  text-align: center;
  border-radius: 0.12rem;
  line-height: 0.6rem;
  background: #000;
  color: #ffffff;
  font-size: 0.22rem;
  margin-top: 0.3rem;
}
.h-right span:nth-child(2)::after {
  width: 0.5rem;
  height: 0.5rem;
  background: #000;
}
</style>